import axios from '../utils/axios';
import {api} from '@/config/api'


//获取文章列表
export const articleListApi = (data?:any)=>{
  return axios.post(api.articleList,data)
}
//创建文章
export const createArticleApi = (data?:any)=>{
  return axios.post(api.createArticle,data)
}
//审核文章
export const auditArticleApi = (data?:any)=>{
  return axios.post(api.auditArticle,data)
}
// 删除文章
export const deleteArticleApi = (data?:any)=>{
  return axios.post(api.deleteArticle,data)
}
// 编辑草稿
export const editArticleApi = (data?:any)=>{
  return axios.post(api.editArticle,data)
}



